{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
      <!--树状图-->
      <section class="col-lg-2 connectedSortable" style=" padding-right:0px; margin-bottom:10px;">
           <div class="sidebar" style="background-color:#fff; padding-bottom:0px;">
         <ul class="sidebar-menu" id="chan">
	{%foreach from=$grade_lists key=key item=value%}
		<li class="treeview {%if $value.grade_id==$class_data.grade_id%}active{%/if%}">
		  <a href="#">
			<i class="glyphicon glyphicon-align-left"></i> <span>{%$value.grade_name%}</span> <i class="fa fa-angle-left pull-right"></i>
		  </a>
			  <ul class="treeview-menu" style="background-color:#fff;">
			  {%foreach from=$value.class_name key=k item=v%}
				<li {%if $k==$class_data.class_id%}class="active"{%/if%}><a href="index.php?a=classstudent.classstudentlist&class_id={%$k%}"><i class="fa fa-angle-right"></i>{%$v%}</a></li>
			  {%/foreach%}
			  </ul>
		</li>
	 {%/foreach%}
	 <li class="treeview"><a href="index.php?a=classstudent.studentlist"><i class="glyphicon glyphicon-align-left"></i>未分班学生</a></li>
  </ul>
		</div>
        </section>
        <!--树状图结束-->
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
            <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <span class="fa fa-list" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">{%$class_data.class_name%}学生列表</p>
                </div>
                <div class="box-body">
                     <div class="col-md-3 form-group" style="padding:0;">
                        <label class="col-sm-3 control-label text-right" for="inputPassword3" style="padding-right:0; padding-left:0; font-weight:500;"> 姓名： </label>
                        <div class="input-group col-md-9 col-xs-12">
                           <input type="text" class="form-control" name="student_name" value="{%$student_name%}">
                        </div>
                      </div>
                      <div class="col-md-3 form-group" style="padding:0;">
                        <label class="col-sm-3 control-label text-right" for="inputPassword3" style="padding-right:0; padding-left:0; font-weight:500;"> 学号： </label>
                        <div class="input-group col-md-9 col-xs-12">
                           <input type="text" class="form-control" value="{%$student_no%}" name="student_no">
                        </div>
                      </div>
					  {%if $class_id != ''%}
                      <div class="col-md-3 form-group" style="padding:0;">
                        <label class="col-sm-3 control-label text-right" for="inputPassword3" style="padding-right:0; padding-left:0; font-weight:500;"> 座号： </label>
                        <div class="input-group col-md-9 col-xs-12">
                           <input type="text" class="form-control" value="{%$divide_num%}" name="divide_num">
                        </div>
                      </div>
					  {%/if%}
					  {%if $class_id == ''%}
					  <input type="hidden" name="a" value="classstudent.studentlist">
					  {%else%}
					  <input type="hidden" name="a" value="classstudent.classstudentlist">
					  {%/if%}
					  <input type="hidden" name="class_id" value="{%$class_id%}">
                      <button type="submit" class="btn btn-success" style="margin-left:8px;">查 询</button>
                
                
                     <table class="table table-bordered table-striped"  id="mytable">
                            <thead>
                                    <tr style="background-color:#5fb2dc;">
									{%if $class_id != ''%}
                                        <td>座号<!-- <i class="fa fa-sort-amount-asc"></i> <i class="fa fa-sort-amount-desc"></i>--></td>
										{%/if%}
                                        <td>姓名</td>
                                        <td>性别</td>
                                        <td>学号 
										<!--<a href="index.php?a=classstudent.classstudentlist&student_num=asc">
										<i class="fa fa-sort-amount-asc"></i>
										</a>
										<a href="index.php?a=classstudent.classstudentlist&student_num=desc">
										<i class="fa fa-sort-amount-desc"></i>
										</a>-->
										</td>
                                        <td>学籍号
										<!--<a href="index.php?a=classstudent.classstudentlist&student_school=asc">
										<i class="fa fa-sort-amount-asc"></i>
										</a>
										<a href="index.php?a=classstudent.classstudentlist&student_school=desc">
										<i class="fa fa-sort-amount-desc"></i>
										</a>-->
										</td>
                                        <td>出生日期</td>
                                        <td>家庭地址</td>
                                        <td>联系电话</td>
                                    </tr>
                            </thead>
                            </tbody>
							 {%foreach from=$classstudent_lists key=key item=value%}
                                    <tr>
									{%if $class_id != ''%}
                                        <td>{%$value.student_seat%}</td>
									{%/if%}
                                        <td>{%$value.student_name%}</td>
                                        <td>{%if $value.student_sex eq 1%}男{%else%}女{%/if%}</td>
                                        <td>{%$value.student_no%}</td>
                                        <td>{%$value.student_school%}</td>
                                        <td>{%$value.student_birth%}</td>
                                        <td>{%$value.student_addr%}</td>
                                        <td>{%$value.student_tel%}</td>
                                    </tr>	
                             {%/foreach%}       
                             </tbody>	
                        </table> 
				</div><!--box-body -->
              </form>
			  <div class="box-footer">
			  {%$page%}
			  </div>
           </div><!--box box-default box-solid-->
        </section>   
      </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
 